import request from '@/utils/request'

/**
 * 文件删除
 * @param {Object} data
 * file 文件对象
 */
export function uploadFile(data) {
  return request({
    url: '/course/file/upload',
    method: 'post',
    data
  })
}

/**
 * 文件删除
 * @param {Object} params
 * filePath 文件路径
 */
export function deleteFile(params) {
  return request({
    url: '/course/file/delete',
    method: 'delete',
    params
  })
}
